package com.ocom.payhandle.controller;

import com.ocom.common.constant.PayHandleUrl;
import com.ocom.common.dto.SubsidyDto;
import com.ocom.common.resp.Result;
import com.ocom.payhandle.service.CcbMealAllowanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 发放餐补
 */
@RestController
public class CcbMealAllowanceController {

    @Autowired
    private CcbMealAllowanceService ccbMealAllowanceService;

    @PostMapping(PayHandleUrl.URL_ccbzhshGrantSubsidy)
    public Result ccbzhshGrantSubsidy(@RequestBody SubsidyDto subsidyDto) {

        return ccbMealAllowanceService.grantSubsidy(subsidyDto);

    }

}
